// 设计用户新建获奖信息有误时显示的对话框

// 关闭VSCode非必要警告
// ignore_for_file: sized_box_for_whitespace, camel_case_types

import 'package:flutter/material.dart';
import 'package:project_award_statistics/utils/my_yaru_buttons/my_yaru_button_normal.dart';
import 'package:yaru/yaru.dart';

class DialogAddawardinfo_Err extends StatelessWidget {
  const DialogAddawardinfo_Err({super.key});
  @override
  Widget build(BuildContext context) {
    return AlertDialog(
      backgroundColor: YaruColors.titleBarLight,
      content: Container(
        height: 200,
        width: 300,
        child: Padding(
          padding: EdgeInsets.all(0.0),
          child: Column(
            children: [
              Text(
                "新建失败",
                style: TextStyle(
                  fontSize: 20,
                ),
              ),
              const SizedBox(height:22),
              Text(
                "请检查您是否完整输入了您的获奖信息,以及输入是否有误!",
                style: TextStyle(
                  fontSize: 18,
                ),
              ),
              const SizedBox(height:40),
              Container(
                height: 45,
                width: 200,
                child: MyYaruButton_Normal(
                  text: "好的,我马上去检查", 
                  onPressed: ()=>Navigator.of(context).pop(),
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}